<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymleaf.org" xmlns:c="">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css"
          media="screen" />
</head>
<body>
<!--<div th:replace="common/top">-->
<!--</div>-->
<div class="home-scrolldown">
    <a href="main" class="scroll-icon smoothscroll">Return to Main Menu-></a>
</div>

<div id="Catalog" style="padding: 10px 350px;height: 650px">

    <h2 th:text="${category.name}">name</h2>

    <table class="table table-hover">
        <tr>
            <th>Product ID</th>
            <th>Name</th>
        </tr>
        <tr th:each="product:${productList}">
            <td><a th:href="@{/product/viewProduct(productId=${product.productId},categoryId=${category.categoryId})}"  th:text="${product.productId}">productId</a></td>
            <td th:text="${product.name}">product.name</td>
        </tr>
<!--        <c:forEach var="product" items="${sessionScope.productList}">-->
<!--            <tr>-->
<!--                <td>-->
<!--                    <a href="viewProduct?productId=${product.productId}">${product.productId}</a>-->
<!--                </td>-->
<!--                <td>${product.name}</td>-->
<!--            </tr>-->
<!--        </c:forEach>-->
    </table>

</div>

<!--<div th:replace="common/bottom"></div>-->
<!--</div>-->

</body>
</html>